import {ref,onMounted} from "vue"
export default function mouseMove (){
    const X = ref(0)
    const Y = ref(0)
    const mouseMove = (e:MouseEvent )=>{
      console.log(e)
      X.value = e.clientX
      Y.value = e.clientY
    }
    onMounted(() => {
        console.log("鼠标移动的初始化")
    })
    return {X,Y,mouseMove}
}